# -*- coding: utf-8 -*-
# @Time : 2019/2/24 20:05
# @Author : chen
# @Site : 
# @File : output.py
# @Software: PyCharm


from test.redis_queue import RedisQueue
import time

q = RedisQueue('rq')
while 1:
    result = q.get_nowait()
    if not result:
        break
    print("output.py: data {} out of queue {}".format(result, time.strftime("%c")))
    time.sleep(2)